package com.example.glidetest;

import com.bumptech.glide.Glide;
import com.bumptech.glide.load.engine.DiskCacheStrategy;

import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.ImageView;


public class MainActivity extends Activity {

	private ImageView gv_my_op,gv_my_op1,gv_my_op2,gv_my_op3,gv_my_op4,gv_my_op5;
	private ImageView gv_my_op6,gv_my_op7,gv_my_op8,gv_my_op9,gv_my_op10,gv_my_op11;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);大幅度反弹但是奋斗奋斗奋斗奋斗奋斗奋斗奋斗分
        intiView();大大方方
    }
大幅度
    private void intiView() {适当浮动幅度
		// TODO Auto-generated method stub
    	gv_my_op6 = (ImageView) findViewById(R.id.gv_my_op6);
    	gv_my_op7 = (ImageView) findViewById(R.id.gv_my_op7);
    	gv_my_op8 = (ImageView) findViewById(R.id.gv_my_op8);
    	gv_my_op9 = (ImageView) findViewById(R.id.gv_my_op9);
    	gv_my_op10 = (ImageView) findViewById(R.id.gv_my_op10);
    	gv_my_op11 = (ImageView) findViewById(R.id.gv_my_op11);
    	


    	Glide.with(MainActivity.this).load(R.drawable.m1).asGif().diskCacheStrategy(DiskCacheStrategy.SOURCE).into(gv_my_op6);
    	Glide.with(MainActivity.this).load(R.drawable.m2).asGif().diskCacheStrategy(DiskCacheStrategy.SOURCE).into(gv_my_op7);
    	Glide.with(MainActivity.this).load(R.drawable.q1).asGif().diskCacheStrategy(DiskCacheStrategy.SOURCE).into(gv_my_op8);
    	Glide.with(MainActivity.this).load(R.drawable.q2).asGif().diskCacheStrategy(DiskCacheStrategy.SOURCE).into(gv_my_op9);
    	Glide.with(MainActivity.this).load(R.drawable.q3).asGif().diskCacheStrategy(DiskCacheStrategy.SOURCE).into(gv_my_op10);
    	Glide.with(MainActivity.this).load(R.drawable.q4).asGif().diskCacheStrategy(DiskCacheStrategy.SOURCE).into(gv_my_op11);
	}

}
